﻿
@{
    ViewData["Title"] = "登录";
}

<form asp-controller="Account"
      asp-action="LoginPost" method="post">
<div>
    <div class="row">
      
        <span>用户名:</span>
            <input name="username" type="text" value="admin" />

    </div>
    <div class="row">
        <span>密码:</span>
            <input name="password" type="password"  value="123456"/>
    </div>
    <div class="row">
        <input id="btnLogin" type="submit" value="登录" />
    </div>
</div>
</form>

@if (ViewContext.ModelState.IsValid == false)
{
    <div class="alert alert-danger">
        <div asp-validation-summary="All" class="danger"></div>
    </div>
}

